import { BaseInstance } from '@/http/index.ts'
import { H5Instance } from '@/http/index.ts'
import { ContentTypeEnum } from '@/http/enum.ts'
import { GetWebPageParams, GetWebPageRes, GetH5PageParams, GetH5PageRes } from './types.ts'

export const getPageDetail = (params: GetWebPageParams) => {
  return BaseInstance.post<GetWebPageRes>('/firstpage/webdistictcounty', params, {
    'content-type': ContentTypeEnum.FORM_URLENCODED,
  })
}

export const getPageList = (params: GetH5PageParams) => {
  return H5Instance.post<GetH5PageRes>('/finance/list', params, {
    'content-type': ContentTypeEnum.FORM_URLENCODED,
  })
}
